import  tushare as ts
import matplotlib.pyplot as plt
import pylab
import numpy as np
import pandas as pd

df = ts.get_hist_data('600039')
#print df

openPrice = np.genfromtxt('test.csv',delimiter=',',usecols=(10,2))
print openPrice.__len__()

#print openPrice[:,0]
x = np.arange(0,openPrice.__len__())

plt.plot(x,openPrice[:,0],marker='o')
plt.plot(x,openPrice[:,1],marker='s')

plt.figure(1)
plt.show()


